import request from '@/utils/request'

// 查询物资出入库明细列表
export function listCangkumingxi(query) {
  return request({
    url: '/jiuzai/cangkumingxi/list',
    method: 'get',
    params: query
  })
}

// 查询物资出入库明细详细
export function getCangkumingxi(mingId) {
  return request({
    url: '/jiuzai/cangkumingxi/' + mingId,
    method: 'get'
  })
}

// 新增物资出入库明细
export function addCangkumingxi(data) {
  return request({
    url: '/jiuzai/cangkumingxi',
    method: 'post',
    data: data
  })
}

// 修改物资出入库明细
export function updateCangkumingxi(data) {
  return request({
    url: '/jiuzai/cangkumingxi',
    method: 'put',
    data: data
  })
}

// 删除物资出入库明细
export function delCangkumingxi(mingId) {
  return request({
    url: '/jiuzai/cangkumingxi/' + mingId,
    method: 'delete'
  })
}
